.class public Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;
.super Lcom/wqmobile/sdk/protocol/cmd/a;


# instance fields
.field public d:[B

.field private e:[B

.field private f:[B

.field private g:Lcom/wqmobile/sdk/protocol/cmd/a;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/wqmobile/sdk/protocol/cmd/a;-><init>()V

    const/16 v0, 0x21

    iput-byte v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->a:B

    const/4 v0, 0x1

    new-array v0, v0, [B

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->e:[B

    const/16 v0, 0x20

    new-array v0, v0, [B

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->d:[B

    const/4 v0, 0x2

    new-array v0, v0, [B

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->f:[B

    invoke-direct {p0}, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->h()V

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->a(I)V

    return-void
.end method

.method public constructor <init>([B)V
    .locals 1

    invoke-direct {p0}, Lcom/wqmobile/sdk/protocol/cmd/a;-><init>()V

    const/16 v0, 0x21

    iput-byte v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->a:B

    const/4 v0, 0x1

    new-array v0, v0, [B

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->e:[B

    const/16 v0, 0x20

    new-array v0, v0, [B

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->d:[B

    const/4 v0, 0x2

    new-array v0, v0, [B

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->f:[B

    invoke-direct {p0}, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->h()V

    invoke-virtual {p0, p1}, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->a([B)I

    return-void
.end method

.method private a(I)V
    .locals 4

    const/4 v3, 0x0

    const/4 v0, 0x2

    invoke-static {p1, v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->a(II)[B

    move-result-object v0

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->f:[B

    array-length v2, v0

    invoke-static {v1, v3, v0, v3, v2}, Lcom/wqmobile/sdk/protocol/cmd/b;->a([BI[BII)I

    return-void
.end method

.method private h()V
    .locals 2

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->c:Ljava/util/List;

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->e:[B

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->c:Ljava/util/List;

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->d:[B

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->c:Ljava/util/List;

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->f:[B

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method


# virtual methods
.method public final a([B)I
    .locals 7

    const/4 v6, 0x1

    const/4 v5, 0x0

    array-length v1, p1

    array-length v0, p1

    if-nez v0, :cond_0

    move v0, v5

    :goto_0
    if-eqz v0, :cond_9

    invoke-super {p0, p1}, Lcom/wqmobile/sdk/protocol/cmd/a;->a([B)I

    move-result v2

    if-nez v2, :cond_4

    new-instance v0, Lcom/wqmobile/sdk/protocol/cmd/WQUnknownContent;

    invoke-direct {v0}, Lcom/wqmobile/sdk/protocol/cmd/WQUnknownContent;-><init>()V

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->a(Lcom/wqmobile/sdk/protocol/cmd/a;)V

    move v0, v5

    :goto_1
    return v0

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, 0x2

    array-length v2, p1

    sub-int/2addr v2, v6

    :goto_2
    aget-byte v3, p1, v2

    if-nez v3, :cond_1

    if-gtz v2, :cond_2

    :cond_1
    if-nez v2, :cond_3

    move v0, v5

    goto :goto_0

    :cond_2
    add-int/lit8 v2, v2, -0x1

    goto :goto_2

    :cond_3
    invoke-virtual {p0, p1, v0, v5, v2}, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->a([BIII)Z

    move-result v0

    goto :goto_0

    :cond_4
    sub-int v0, v1, v6

    :goto_3
    aget-byte v3, p1, v0

    iget-byte v4, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->a:B

    if-eq v3, v4, :cond_5

    if-gtz v0, :cond_7

    :cond_5
    if-ge v2, v0, :cond_6

    if-nez v0, :cond_8

    :cond_6
    new-instance v0, Lcom/wqmobile/sdk/protocol/cmd/WQUnknownContent;

    invoke-direct {v0}, Lcom/wqmobile/sdk/protocol/cmd/WQUnknownContent;-><init>()V

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->a(Lcom/wqmobile/sdk/protocol/cmd/a;)V

    move v0, v5

    goto :goto_1

    :cond_7
    add-int/lit8 v0, v0, -0x1

    goto :goto_3

    :cond_8
    sub-int v3, v0, v6

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->e:[B

    aget-byte v0, v0, v5

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->a(B)Ljava/lang/String;

    move-result-object v0

    :try_start_0
    invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/wqmobile/sdk/protocol/cmd/a;

    invoke-virtual {v0, p1, v2, v3}, Lcom/wqmobile/sdk/protocol/cmd/a;->b([BII)Z

    move-result v4

    if-eqz v4, :cond_9

    invoke-virtual {v0, p1, v2, v3}, Lcom/wqmobile/sdk/protocol/cmd/a;->a([BII)I

    move-result v2

    if-lez v2, :cond_9

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->a(Lcom/wqmobile/sdk/protocol/cmd/a;)V
    :try_end_0
    .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_2
    .catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_0} :catch_0

    move v0, v1

    goto :goto_1

    :catch_0
    move-exception v0

    :cond_9
    :goto_4
    new-instance v0, Lcom/wqmobile/sdk/protocol/cmd/WQUnknownContent;

    invoke-direct {v0}, Lcom/wqmobile/sdk/protocol/cmd/WQUnknownContent;-><init>()V

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->a(Lcom/wqmobile/sdk/protocol/cmd/a;)V

    move v0, v5

    goto :goto_1

    :catch_1
    move-exception v0

    goto :goto_4

    :catch_2
    move-exception v0

    goto :goto_4
.end method

.method public final a()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->d:[B

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->a([B)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public final a(Lcom/wqmobile/sdk/protocol/cmd/a;)V
    .locals 3

    iput-object p1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->g:Lcom/wqmobile/sdk/protocol/cmd/a;

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->e:[B

    const/4 v1, 0x0

    invoke-virtual {p1}, Lcom/wqmobile/sdk/protocol/cmd/a;->d()I

    move-result v2

    int-to-byte v2, v2

    aput-byte v2, v0, v1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->g:Lcom/wqmobile/sdk/protocol/cmd/a;

    invoke-virtual {v0, p0}, Lcom/wqmobile/sdk/protocol/cmd/a;->a(Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;)V

    return-void
.end method

.method public final b()Lcom/wqmobile/sdk/protocol/cmd/a;
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->g:Lcom/wqmobile/sdk/protocol/cmd/a;

    return-object v0
.end method

.method public final b(Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;)V
    .locals 1

    iget-object v0, p1, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->d:[B

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->a([B)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->b(Ljava/lang/String;)V

    iget-object v0, p1, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->f:[B

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->c([B)I

    move-result v0

    invoke-direct {p0, v0}, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->a(I)V

    return-void
.end method

.method public final b(Ljava/lang/String;)V
    .locals 1

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->d:[B

    invoke-static {v0, p1}, Lcom/wqmobile/sdk/protocol/cmd/b;->a([BLjava/lang/String;)I

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->d:[B

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->b([B)V

    goto :goto_0
.end method

.method public final c(Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;)Z
    .locals 2

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->f:[B

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->c([B)I

    move-result v0

    iget-object v1, p1, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->f:[B

    invoke-static {v1}, Lcom/wqmobile/sdk/protocol/cmd/b;->c([B)I

    move-result v1

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final c()[B
    .locals 5

    invoke-super {p0}, Lcom/wqmobile/sdk/protocol/cmd/a;->e()I

    move-result v0

    invoke-super {p0}, Lcom/wqmobile/sdk/protocol/cmd/a;->c()[B

    move-result-object v1

    iget-object v2, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->g:Lcom/wqmobile/sdk/protocol/cmd/a;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->g:Lcom/wqmobile/sdk/protocol/cmd/a;

    invoke-virtual {v2}, Lcom/wqmobile/sdk/protocol/cmd/a;->c()[B

    move-result-object v2

    const/4 v3, 0x0

    array-length v4, v2

    invoke-static {v1, v0, v2, v3, v4}, Lcom/wqmobile/sdk/protocol/cmd/b;->a([BI[BII)I

    :cond_0
    array-length v0, v1

    const/4 v2, 0x1

    sub-int/2addr v0, v2

    iget-byte v2, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->a:B

    aput-byte v2, v1, v0

    return-object v1
.end method

.method public final d()I
    .locals 2

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->e:[B

    aget-byte v0, v0, v1

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->g:Lcom/wqmobile/sdk/protocol/cmd/a;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->g:Lcom/wqmobile/sdk/protocol/cmd/a;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/cmd/a;->d()I

    move-result v0

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->e:[B

    aget-byte v0, v0, v1

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->b(B)I

    move-result v0

    goto :goto_0
.end method

.method protected final e()I
    .locals 2

    invoke-super {p0}, Lcom/wqmobile/sdk/protocol/cmd/a;->e()I

    move-result v0

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->g:Lcom/wqmobile/sdk/protocol/cmd/a;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->g:Lcom/wqmobile/sdk/protocol/cmd/a;

    invoke-virtual {v1}, Lcom/wqmobile/sdk/protocol/cmd/a;->e()I

    move-result v1

    add-int/2addr v0, v1

    :cond_0
    add-int/lit8 v0, v0, 0x1

    return v0
.end method

.method public final g()V
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->f:[B

    invoke-static {v0}, Lcom/wqmobile/sdk/protocol/cmd/b;->c([B)I

    move-result v0

    add-int/lit8 v0, v0, 0x1

    invoke-direct {p0, v0}, Lcom/wqmobile/sdk/protocol/cmd/WQTransferData;->a(I)V

    return-void
.end method
